//
//  ViewController.m
//  lesson 1
//
//  Created by smile~祚 on 16/9/13.
//  Copyright © 2016年 smile~祚. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIButton *btm;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *av;
@property (weak, nonatomic) IBOutlet UISlider *slider;
@property (weak, nonatomic) IBOutlet UISlider *sender;


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)onlick:(id)sender {
//    self.btm.backgroundColor = [UIColor blackColor];
    if(_av.isAnimating){
        [_av stopAnimating];
    }else{
        [_av startAnimating];
    }
}
- (IBAction)of:(UISwitch *)sender {
    if(sender.isOn)
    {
        [_av startAnimating];
    }else{
        [_av stopAnimating];
    }
}
- (IBAction)onChanged:(UISlider *)sender {
    _slider.value = sender.value;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
